<?php use_helper('Javascript','Object')?>
<?php echo javascript_include_tag('ajax') ?>
    <table width="700" border="0" align="center" id="externa">
      <tr>
        <td valign="top">
          <fieldset>
          <legend>Listado del Personal </legend>
    <?php echo form_tag('personal/pdf');?>
            <table width="650" border="0" align="center" id="general">
              <tr>
                <td width="13%">Decanato:</td>
                <td width="44%">
					<?
					  $c1 = new Criteria();
					  $this->decanato = DecanatoPeer::doSelect($c1);
					  echo select_tag('decanato',objects_for_select($this->decanato, 'getCpDecanato', 'getNombre'));
				  ?>
				</td>
                <td width="8%">Perfil:</td>
                <td width="35%">
				<?
				  $c4 = new Criteria();
				  $c4->add(RolPeer::CLASIFICACION,'Especialista');
				  $rol=RolPeer::doSelect($c4);
				  echo select_tag('tipopersonal', objects_for_select($rol,'getId','getDescripcion'),array(
					'onChange' => remote_function(array(
					  'update'   => 'tabla',
					  'url'      => 'personal/listar',
					  'with' => "'ajax=1&perfil='+this.value+'&decanat='+$('decanato').value"
					  )))
				);?>
				</td>
              </tr>
              <tr>
                <td height="19">&nbsp;</td>
                <td width="44%">&nbsp;</td>
                <td width="8%">&nbsp;</td>
                <td width="35%">&nbsp;</td>
              </tr>
            </table>
            <table id="tabla" width="650" border="1" align="center">
            </table>
          </form>
        </fieldset></td>
      </tr>
    </table>
